import React, { useCallback } from 'react';
import Captcha from 'react-captcha-code';
export default function VerificationCode(values){
    const handleClick = useCallback((captcha) => {
        values.setCaptcha(captcha);
        console.log('captcha:', captcha)
      }, []);
    return <Captcha charNum={4} onChange={handleClick} />;
}